package com.moto.utils;

import java.util.Random;

public class StringUtil {
    public static String getCode(){
        StringBuffer sb = new StringBuffer();
        for(int i=0;i<10;i++){
            if(i==0 || i==1){
                continue;
            }
            sb.append(i);
        }
        String code = "";
        for(int i=0;i<4;i++){
            code += sb.charAt(new Random().nextInt(sb.length()));
        }
        return code;
    }
}




